package com.atguigu.gmall.payment.service;

import com.atguigu.gmall.model.order.OrderInfo;
import com.atguigu.gmall.model.payment.PaymentInfo;

import java.util.Map;

public interface PaymentService {
    //保存交易记录
    void savePaymentInfo(OrderInfo orderInfo, String paymentType);
    //获取paymentInfo 对象
    PaymentInfo getPaymentInfo(String outTradeNo, String name);
    //支付成功更新交易记录方法
    void paySuccess(String outTradeNo, String name, Map<String, String> paramMap);
    //根据outTradeNo 支付方式name 更新数据
    void updatePaymentInfo(String outTradeNo, String name, PaymentInfo paymentInfo);
    //关闭交易记录
    void closePayment(Long orderId);
}
